﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.DAL.Estate;
using ZLDC.Topo.BLL.Estate;
using ZLDC.Common.Estate;

namespace ZLDC.Estate.TM
{
    public partial class CdepartTree : _PageBase
    {
        public string sDeptTree = string.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {            
            if (!Page.IsPostBack)
            {
                DeptTree zdt = new DeptTree();
                sDeptTree = zdt.GetZlhqDept();
            }
        }

        /// <summary>
        /// 清理部门缓存  重新加载页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void lbtRefreshRefresh_Click(object sender, EventArgs e)
        {
            DeptDAL.ClearCache();
            DeptTree zdr = new DeptTree();
            zdr.ClearCache();
            Page.Response.Redirect("CdepartTree.aspx");
        }
       
    }
}
